<template>
	<view>
		<u-tabbar
			:value="value6"
			@change="name => value6 = name"
			:fixed="true"
			:placeholder="true"
			:safeAreaInsetBottom="true"
			activeColor="#02A774"
			inactiveColor="#9D9D9D"
		>
			<u-tabbar-item @click="index" text="首页" icon="home" ></u-tabbar-item>
			<u-tabbar-item @click="search" text="搜索" icon="photo" ></u-tabbar-item>
			<u-tabbar-item @click="order" text="订单" icon="play-right" ></u-tabbar-item>
			<u-tabbar-item @click="my" text="我的" icon="account" ></u-tabbar-item>
		</u-tabbar>
	</view>
</template>

<script>
	export default {
		name:"tab",
		data() {
			return {
				value6: 0,
			};
		},
		methods:{
			index(){
				uni.switchTab({
					url:"/pages/index/index"
				})
			},search(){
				uni.switchTab({
					url:"/pages/search/search"
				})
			},
			order(){
				uni.switchTab({
					url:"/pages/order/order"
				})
			},
			my(){
				uni.switchTab({
					url:"/pages/my/my"
				})
			},
		}
	}
</script>

<style>

</style>